<%--
功能: 属性定义器
--%>
<%@ tag body-content="scriptless"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ attribute name="definerId" required="true" rtexprvalue="true" type="java.lang.String" description="definer id" %>
<%@ attribute name="module" required="false" rtexprvalue="true" type="java.lang.String" description="模块号： 1产品，2内容，3客户，4销售，5目录;如果是new则不需要填写" %>
<%@ attribute name="callbackFunc" required="true" rtexprvalue="true" type="java.lang.String" description="回调函数，返回attribute的JSON对象{attributeId,attributeName,attributeDataType,attributeType,isRequired}" %>
<%@ attribute name="attributeId" required="false" rtexprvalue="true" type="java.lang.Integer" description="属性Id 如果是new则不需要填写" %>

<div id="divDlg${definerId}" style="height:363px;">
	<iframe id="${definerId}AttributeDefiner"  name="${definerId}AttributeDefiner" frameborder="0" scrolling="no" width="100%" height="363" style="display:none;">
		<!-- 放置内容 fillDiv -->
		
	</iframe>
</div>
<jsp:doBody />

<c:set var="plugin_iframeLoader" value="true" scope="request"/>
<script type="text/javascript">
var ${definerId}Iframe = $j("#${definerId}AttributeDefiner")[0];
var ${definerId}CallbackFunc ;

$j(document).ready(function () {
	$j('#divDlg${definerId}').loading();
	$j(${definerId}Iframe).src(__ctxPath + "/attribute/attributeDefiner/windowPage.html?attributeId=${attributeId}&definerId=${definerId}&module=${module}",function(duration){$j(${definerId}Iframe).show();$j('#divDlg${definerId}').unloading();});
	${definerId}CallbackFunc=eval(${callbackFunc});
});


</script>